package com.kalvin.kvf.modules.fn.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.kalvin.kvf.modules.fn.entity.Users;
import com.kalvin.kvf.modules.fn.mapper.UsersMapper;

import java.util.List;

/**
 * <p>
 * 风能 股东表 服务实现类
 * </p>
 * @since 2021-07-26 10:37:37
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {

    @Override
    public Page<Users> listUsersPage(Users users) {
        Page<Users> page = new Page<>(users.getCurrent(), users.getSize());
        List<Users> userss = baseMapper.selectUsersList(users, page);
        return page.setRecords(userss);
    }

}
